package com.zwps.biz.dal.db.object;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/**
    * 警报广播信息表
    */
@Data
@TableName(value = "alarm_broadcast")
public class AlarmBroadcastDO {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发送IP地址
     */
    @TableField(value = "from_ip")

    private String fromIp;

    /**
     * 发送方邮箱地址
     */
    @TableField(value = "from_addr")

    private String fromAddr;

    /**
     * 接收方邮箱地址
     */
    @TableField(value = "to_addr")

    private String toAddr;

    /**
     * 邮件主题
     */
    @TableField(value = "subject")

    private String subject;

    /**
     * 摄像头设备ID
     */
    @TableField(value = "ipdome_id")

    private String ipdomeId;

    /**
     * 摄像头名称
     */
    @TableField(value = "ipdome_name")

    private String ipdomeName;

    /**
     * 摄像头通道号
     */
    @TableField(value = "camera_number")

    private String cameraNumber;

    /**
     * 摄像头通道名称
     */
    @TableField(value = "camera_name")

    private String cameraName;

    /**
     * 事件发生时间
     */
    @TableField(value = "event_time")

    private LocalDateTime eventTime;

    /**
     * 事件类型
     */
    @TableField(value = "event_type")

    private String eventType;

    /**
     * 事件详细信息
     */
    @TableField(value = "message")

    private String message;

    /**
     * 数据更新时间
     */
    @TableField(value = "update_time")

    private LocalDateTime updateTime;

    /**
     * 事件图片URL列表
     */
    @TableField(value = "imgs_url")
    private String imgsUrl;

    @TableField(exist = false)
    private List<String> imgsUrlList=new ArrayList<>();


}